<?php

namespace app\api\Logic\Campusclass;

use app\api\model\CampusClassCourseEvaluationModel;
use think\Exception;

//评价课次接口
class CampusClassCourseEvaluationLogic
{
    /**
     * 该课次是否已被学员评价
     * @param $signId
     * @return bool
     * @throws Exception
     */
    public function isExists($signId){
        $count = CampusClassCourseEvaluationModel::where('s_id',$signId)
            ->where('type',2)
            ->count();
        return $count > 0;
    }
}
